package com.example.auth;


import com.sun.net.httpserver.Authenticator;
import com.sun.net.httpserver.HttpExchange;

public class MyAuthenticator extends Authenticator {
    @Override
    public Result authenticate(HttpExchange httpExchange) {

        return new Success(httpExchange.getPrincipal());
    }
}
